extends layout

block content
    h1= title
    form(method='post' action='')
        div.form-group
            label(for='first_name') 名字:
            input#first_name.form-control(type='text', placeholder='please input first_name', name='first_name', value=(undefined===author?'':author.first_name), required='true')
            label(for='family_name') 姓氏
            input#family_name.form-control(type='text', placeholder='input family name', name='family_name', value=(author===undefined?'':author.family_name))
        div.form-group
            label(for='date_of_birth') 出生日期:
            input#date_of_birth.form-control(type='date' name='date_of_birth' value=(undefined === author ? '' : author.date_of_birth) required='true')
            label(for='date_of_death') 死亡日期
            input#date_of_death.form-control(type='date' name='date_of_death' value=(author === undefined ? '' : author.date_of_death))
        button.btn.btn-primary(type='submit') 提交

    if errors
        ul
            for error in errors
                li!=error.msg